/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo924;

import demo923.*;
import java.util.Scanner;

/**
 *
 * @author Administrator
 */
public class StringBufferDemo1 {
    
    
            

    public static void main(String args[]) {
        StringBuffer stringBuffer=new StringBuffer("java");
        stringBuffer.append("jsp");
        stringBuffer.append("swing").append("spring");
         StringBuffer verifycode =new StringBuffer();
        int y;
        char c;
        for (int j = 1; j <= 20; j++) {
            verifycode.delete(0, verifycode.length());
            for (int i = 1; i <= 6; i++) {
                y = (int) (Math.random() * 26) + 65;
                c = (char) y;
                verifycode.append(c);
            }
            System.out.println(verifycode);
        }

        
        
        





    }
}
